home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / disk / volume.h < prev   
Encoding:
C/C++ Source or Header  |  2008-10-04  |  1.8 KB  |  53 lines

  1. /*
  2.  * Copyright (c) 2000-2005 Silicon Graphics, Inc.
  3.  * All Rights Reserved.
  4.  *
  5.  * This program is free software; you can redistribute it and/or
  6.  * modify it under the terms of the GNU General Public License as
  7.  * published by the Free Software Foundation.
  8.  *
  9.  * This program is distributed in the hope that it would be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.  * GNU General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU General Public License
  15.  * along with this program; if not, write the Free Software Foundation,
  16.  * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  17.  */
  18. #ifndef __VOLUME_H__
  19. #define __VOLUME_H__
  20.  
  21. /*
  22.  * Subvolume Types for all volume managers.
  23.  *
  24.  * There is a maximum of 255 subvolumes. 0 is reserved.
  25.  *    Note:  SVTYPE_LOG, SVTYPE_DATA, SVTYPE_RT values matches XLV.
  26.  *           Do not change - Colin Ngam
  27.  */
  28. typedef enum sv_type_e {
  29.     SVTYPE_ALL        =0,     /* special: denotes all sv's */
  30.     SVTYPE_LOG        =1,     /* XVM Log subvol type */
  31.     SVTYPE_DATA,             /* XVM Data subvol type */
  32.     SVTYPE_RT,             /* XVM Real Time subvol type */
  33.     SVTYPE_SWAP,             /* swap area */
  34.     SVTYPE_RSVD5,             /* reserved 5 */
  35.     SVTYPE_RSVD6,             /* reserved 6 */
  36.     SVTYPE_RSVD7,             /* reserved 7 */
  37.     SVTYPE_RSVD8,             /* reserved 8 */
  38.     SVTYPE_RSVD9,             /* reserved 9 */
  39.     SVTYPE_RSVD10,             /* reserved 10 */
  40.     SVTYPE_RSVD11,             /* reserved 11 */
  41.     SVTYPE_RSVD12,             /* reserved 12 */
  42.     SVTYPE_RSVD13,             /* reserved 13 */
  43.     SVTYPE_RSVD14,             /* reserved 14 */
  44.     SVTYPE_RSVD15,             /* reserved 15 */
  45.     SVTYPE_USER1,             /* First User Defined Subvol Type */
  46.     SVTYPE_LAST        =255
  47. } sv_type_t;
  48.  
  49. extern void get_subvol_stripe_wrapper (char *, sv_type_t, int *, int *, int *);
  50. extern int  get_driver_block_major (const char *, int);
  51.  
  52. #endif /* __VOLUME_H__ */
  53.